<template>
<!-- base table component -->
  <table id="tbData">
    <thead>
      <slot name="head"></slot>
    </thead>
    <tbody id="tbody">
      <tr v-for="(item, index) in tbData" :key="item.id">
        <slot :index="index" :item="item" name="body"></slot>
      </tr>
    </tbody>
  </table>
</template>

<script>
export default {
  props: {
    tbData: {
      type: Array,
      required: true,
    },
  },
};
</script>

<style>
</style>